package br.com.jogo.neg;

import java.util.ArrayList;
import java.util.List;

public class Team {

	public static final int LEFT = 0;
	public static final int RIGHT = 1;

	public int side;
	public final List<Unit> units = new ArrayList<Unit>();

	public Team(int side) {
		this.side = side;
	}

	public void update(float delta) {

		for (int i = 0; i < units.size(); i++) {
			units.get(i).update(delta);
		}

	}

	public void addUnit(Unit unit) {

		this.units.add(unit);
		unit.team = this;

	}

}
